package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import com.futureCloudMOM.framework.dict.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "WMS_InventoryMain", description = "盘点主表")
@TableName(value = "WMS_InventoryMain")
public class WmsInventoryMain extends FBaseEntity implements Serializable {


    
    @NotBlank(message="[盘点单号]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("盘点单号")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "billNo")
    private String billNo;
    
    @NotBlank(message="[单据类型]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("单据类型")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "billType")
    private String billType;
    
    @NotNull(message="[状态]不能为空")
    @ApiModelProperty("状态")
    @TableField(value = "status")
    @Dict(dictCode = "inventory_status")
    private Long status;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("备注")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "remark")
    private String remark;
    
    @NotNull(message="[仓库ID]不能为空")
    @ApiModelProperty("仓库ID")
    @TableField(value = "wHId")
    private Long wHId;
    
    @ApiModelProperty("盘点日期")
    @TableField(value = "billDate")
    private Date billDate;
    
    @NotBlank(message="[动态盘点标记]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("动态盘点标记")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "movableFlag")
    private String movableFlag;






}

